using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_Base_News_InfoMap : EntityTypeConfiguration<Web_Base_News_Info>
    {
        public Web_Base_News_InfoMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("Web_Base_News_Info");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.SiteId).HasColumnName("SiteId");
            this.Property(t => t.ParentId).HasColumnName("ParentId");
            this.Property(t => t.NodeId).HasColumnName("NodeId");
            this.Property(t => t.ModelId).HasColumnName("ModelId");
            this.Property(t => t.SortId).HasColumnName("SortId");
            this.Property(t => t.AccId).HasColumnName("AccId");
            this.Property(t => t.AccType).HasColumnName("AccType");
            this.Property(t => t.Title).HasColumnName("Title");
            this.Property(t => t.TitleSe).HasColumnName("TitleSe");
            this.Property(t => t.TitleEn).HasColumnName("TitleEn");
            this.Property(t => t.TitleShort).HasColumnName("TitleShort");
            this.Property(t => t.TitleExt).HasColumnName("TitleExt");
            this.Property(t => t.Content).HasColumnName("Content");
            this.Property(t => t.ContentExt).HasColumnName("ContentExt");
            this.Property(t => t.Summary).HasColumnName("Summary");
            this.Property(t => t.CssNames).HasColumnName("CssNames");
            this.Property(t => t.CssName).HasColumnName("CssName");
            this.Property(t => t.Folder).HasColumnName("Folder");
            this.Property(t => t.Url).HasColumnName("Url");
            this.Property(t => t.UrlEnable).HasColumnName("UrlEnable");
            this.Property(t => t.Href).HasColumnName("Href");
            this.Property(t => t.DateTimeOnline).HasColumnName("DateTimeOnline");
            this.Property(t => t.DateTimeOffline).HasColumnName("DateTimeOffline");
            this.Property(t => t.DateTimeView).HasColumnName("DateTimeView");
            this.Property(t => t.DateTimeCreate).HasColumnName("DateTimeCreate");
            this.Property(t => t.DateTimeUpdate).HasColumnName("DateTimeUpdate");
            this.Property(t => t.DateTimePass).HasColumnName("DateTimePass");
            this.Property(t => t.Tag).HasColumnName("Tag");
            this.Property(t => t.KeyWord).HasColumnName("KeyWord");
            this.Property(t => t.Key).HasColumnName("Key");
            this.Property(t => t.Keys).HasColumnName("Keys");
            this.Property(t => t.Value).HasColumnName("Value");
            this.Property(t => t.Values).HasColumnName("Values");
            this.Property(t => t.LimitDiscuss).HasColumnName("LimitDiscuss");
            this.Property(t => t.LimitEmotion).HasColumnName("LimitEmotion");
            this.Property(t => t.LimitCopyright).HasColumnName("LimitCopyright");
            this.Property(t => t.Click).HasColumnName("Click");
            this.Property(t => t.ClickView).HasColumnName("ClickView");
            this.Property(t => t.FlagView).HasColumnName("FlagView");
            this.Property(t => t.FlagPass).HasColumnName("FlagPass");
            this.Property(t => t.FlagStop).HasColumnName("FlagStop");
            this.Property(t => t.FlagStatus).HasColumnName("FlagStatus");
            this.Property(t => t.TemplateView).HasColumnName("TemplateView");
        }
    }
}
